<template>
  <div class="balance-panel">
    <div class="main">
      <div class="top">
        <span>当前余额</span>
        <span class="explain" @click="handleSkipDetail">余额说明</span>
      </div>
      <div class="center"><span class="balance">0.00</span> 元</div>
      <div class="bottom">
        提现
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    handleSkipDetail() {
      this.$router.push('/balance/detail')
    }
  }
};
</script>
<style lang="less" scoped>
.balance-panel {
  padding: 10px;
  border-top: 1px solid #62a9eb;
  background-color: #3190e8;
  .main {
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    font-size: 12px;
    .top {
      display: flex;
      justify-content: space-between;
      position: relative;
      .explain {
        color: #3190e8;
        &::before {
          content: "";
          position: absolute;
          top: 50%;
          right: 50px;
          width: 15px;
          height: 15px;
          background-image: url("~assets/img/profile/description.png");
          background-size: 100% 100%;
          transform: translateY(-60%);
        }
      }
    }
    .center {
      margin: 5px 0 25px 0;
      .balance {
        font-weight: 700;
        font-size: 45px;
        color: #3c3333;
      }
    }
    .bottom {
      text-align: center;
      padding: 10px;
      background-color: #cccccc;
      font-size: 15px;
      color: #fff;
    }
  }
}
</style>